#include<bits/stdc++.h>
using namespace std;
int n,r[114514],tot;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;tot=n+1;
    //cout<<tot<<" ";
    for(int i=1;i<=n;i++){
        cin>>r[i];
        if(r[i]>r[i-1])
            tot--;
    }
    cout<<tot;

    return 0;
}
